<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    	<title>统战成员学习平台</title>
	    <link rel="stylesheet" type="text/css" href="../../css/base.css" />
	    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
	</head>
	<body class="white">
		<div id='app' style="display:none" v-show="true">
			<div class="news_detail">
				<p class="title">{{id}}</p>
				<p class="author">{{id}}<span class="time"></span></p>
				<div class="content" v-html="id"></div>
			</div>
		</div>
		<script type="text/javascript" src="../../script/api.js"></script>
		<script type="text/javascript" src="../../script/vue.min.js"></script>
		<script type="text/javascript" src="../../script/common.js"></script>
		<script type="text/javascript" src="../../script/layer_mobile/layer.js"></script>
		<script type="text/javascript">
		    new Vue({
				el: '#app',
		     	data: {
					id: 0,
					showTitle : '',
					author: '',
					detailDate: '',
					showContent: ''
		     	},
				mounted: function() {
		        	var $this = this;
		        	apiready = function() {
						api.parseTapmode();
						$this.id = api.pageParam.id;
						// $this.init();
                	}
		    	},
		    	methods: {
					init: function() {
						var $this = this;
						get('/client/news/content?id=' + $this.id, function (ret) {
							if(ret.code == 200){
								$this.showTitle = ret.data.showTitle;
								$this.detailDate = ret.data.detailDate;
								$this.showContent = ret.data.showContent;
							} else {
								msgUtil.toast({msg: ret.message});
							}
						});
					}
		    	}
		    });
		</script>
	</body>
</html>
